package com.ysjy.course.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.wkbb.common.handler.JsonUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@ApiModel("设备数据1")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class YsDeviceCount implements Serializable {

    @ApiModelProperty(value = "ID")
    private Long id;
    @ApiModelProperty(value = "设备号")
    private String deviceNumber;
    @ApiModelProperty(value = "个数")
    private Integer count;
    @ApiModelProperty(value = "时间")
    private Date date;

    public static void main(String[] args) {
//        ys_teacher_course_time_feedback
        YsDeviceCount data = new YsDeviceCount();
        data.setDeviceNumber("S123456");
        data.setCount(50);
        data.setDate(new Date());
        System.out.println(JsonUtil.objectToJson(data));
    }
}